import javax.swing.JFrame;
import javax.swing.SpringLayout;

import java.awt.BorderLayout;
import java.awt.Dimension;


public class OverFrame extends JFrame {
	LoginPanel login; //Added the scope (public, private, so on...)

	SpringLayout layout = new SpringLayout(); //See previous comments.
	
	public OverFrame() {
		setTitle("Thunder Dragon Hospital System");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setPreferredSize(new Dimension(700, 700));
		
		login = new LoginPanel();
		layout.putConstraint(SpringLayout.NORTH,
				login, 100, SpringLayout.NORTH, getContentPane());
		layout.putConstraint(SpringLayout.WEST,
				login, 109, SpringLayout.WEST, getContentPane());
		layout.putConstraint(SpringLayout.SOUTH,
				login, -165, SpringLayout.SOUTH, getContentPane());
		layout.putConstraint(SpringLayout.EAST,
				login, -75, SpringLayout.EAST, getContentPane());
		
		getContentPane().setLayout(layout);
		
		getContentPane().add(login);
	}
	 
}
